package io.gitee.zhucan123.core.infrastructure.exception;

/**
 * @description:实体类不存在异常
 * @author: jiwangc
 * @date: 2019/6/25 16:14
 */
public class EntityNotFoundException extends javax.persistence.EntityNotFoundException {

  private static final long serialVersionUID = -827816219192053509L;

  public EntityNotFoundException(Long id) {
    super(String.format("Could not find with id: %d", id));
  }

  public EntityNotFoundException(Integer code) {
    super(String.format("Could not find with code: %d", code));
  }

  public EntityNotFoundException(String msg) {
    super(String.format("%s", msg));
  }
}
